Creating and Disposing of Time Bases
This section discusses the Movie Toolbox functions your application can use to create and dispose of time bases.The
NewTimeBase
function lets you create a new time base. You can use theDisposeTimeBase
function to dispose of a time base once you are finished with it.Time bases rely on either a clock component or another time base for their time source. You can use the
SetTimeBaseMasterTimeBase
function to cause one time base to be based on another time base. TheGetTimeBaseMasterTimeBase
allows you to determine the master time base of a given time base.You can assign a clock component to a time base; that clock then acts as the master clock for the time base. You can use the
SetTimeBaseMasterClock
function to assign a clock component to a time base. TheGetTimeBaseMasterClock
function enables you to determine the clock component that is assigned to a time base. You can change the offset between a time base and its time source by calling theSetTimeBaseZero
function.You can set the time source of a movie by calling the
SetMovieMasterTimeBase
andSetMovieMasterClock
functions.
- Note
- Although most time base functions can be used at interrupt time, several of the Movie Toolbox functions cannot. These functions are noted in the sections that follow.
![]()
Subtopics
- NewTimeBase
- DisposeTimeBase
- SetMovieMasterClock
- SetMovieMasterTimeBase
- SetTimeBaseMasterClock
- GetTimeBaseMasterClock
- SetTimeBaseMasterTimeBase
- GetTimeBaseMasterTimeBase
- SetTimeBaseZero